Merged
Conversation
* feat: show sandbox history on /sandboxes page - Add getSandboxes lib function to fetch sandbox history from API - Add useSandboxes hook with React Query for data fetching - Update SandboxesPage to display history with loading/error states - Update SandboxList with status colors and creation timestamps Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: simplify sandbox components with SRP and refetch - Extract SandboxListCard.tsx component (SRP) - Replace handleSandboxCreated with refetch in SandboxesPage - Update SandboxCreateSection to use onSuccess callback - Remove local state management in favor of React Query refetch Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes refactor sandbox management by extracting data fetching into a custom hook (useSandboxes), introducing a new API endpoint (getSandboxes), simplifying the creation callback to a generic onSuccess pattern, adding a presentational component (SandboxListCard), and implementing loading and error UI states. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SandboxesPage
participant useSandboxes Hook
participant SandboxCreateSection
participant API Server
User->>SandboxesPage: Visit page
SandboxesPage->>useSandboxes Hook: Call hook
useSandboxes Hook->>API Server: GET /api/sandboxes (with token)
API Server-->>useSandboxes Hook: Return sandboxes[]
useSandboxes Hook-->>SandboxesPage: Return data + refetch
SandboxesPage->>SandboxesPage: Show SandboxList
User->>SandboxCreateSection: Click create sandbox
SandboxCreateSection->>API Server: POST create sandbox
API Server-->>SandboxCreateSection: Success
SandboxCreateSection->>useSandboxes Hook: Call onSuccess()
useSandboxes Hook->>API Server: refetch: GET /api/sandboxes
API Server-->>useSandboxes Hook: Return updated sandboxes[]
useSandboxes Hook-->>SandboxesPage: New sandboxes
SandboxesPage->>SandboxesPage: Update SandboxList display
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge test branch changes to main
Summary by CodeRabbit